package com.broada.apm.es.bean;

import java.util.Date;

import com.broada.apm.indicator.api.util.CustomerDateAndTimeDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

/**
 * 快照状态信息
 */
public class Snapshot {
	private String snapshot;
	private String[] indices;
	//IN_PROGRESS,SUCCESS
	private String state;
	private Date start_time;
	private Date end_time;
	private long duration_in_millis;
	private String[] failures;

	public String getSnapshot() {
		return snapshot;
	}

	public void setSnapshot(String snapshot) {
		this.snapshot = snapshot;
	}

	public String[] getIndices() {
		return indices;
	}

	public void setIndices(String[] indices) {
		this.indices = indices;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Date getStart_time() {
		return start_time;
	}
	@JsonDeserialize(using=CustomerDateAndTimeDeserialize.class)
	public void setStart_time(Date start_time) {
		this.start_time = start_time;
	}

	public Date getEnd_time() {
		return end_time;
	}
	@JsonDeserialize(using=CustomerDateAndTimeDeserialize.class)
	public void setEnd_time(Date end_time) {
		this.end_time = end_time;
	}

	public long getDuration_in_millis() {
		return duration_in_millis;
	}
	
	public void setDuration_in_millis(long duration_in_millis) {
		this.duration_in_millis = duration_in_millis;
	}

	public String[] getFailures() {
		return failures;
	}

	public void setFailures(String[] failures) {
		this.failures = failures;
	}

}